package com.szj360.utils;

import org.json.JSONException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qiniu.util.Auth;

/**
 * 七牛工具类
 * 
 * @author Administrator
 *
 */
public class QiniuUtils {
	private static String ACCESS_KEY = "xpYW7wOBOiQaDfnnEd23PyCWa0N-o-R-8gsZdPRP";
	private static String SECRET_KEY = "nltu_ce0qcOy3AnwkyetMcTlDOMmuHw3uiOiUSfk";
	public static String getPrefix(){
		return "http://7u2lgp.com1.z0.glb.clouddn.com";
	}
	public static String getToken() {
		
		Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY);
		return auth.uploadToken("brokermobile");
	}
}
